package com.cal.utms.action.maintenance;

import com.cal.utms.dto.maintenance.IssuerBankAccountDto;
import com.cal.utms.model.maintenance.IssuerModel;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class IssuerBankAccountAction extends ActionSupport implements ModelDriven<IssuerBankAccountDto> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	IssuerModel issuerModel = new IssuerModel();
	private IssuerBankAccountDto bankAccountDto = new IssuerBankAccountDto();
	private int issuer_id;
	
	public String getBankAccountByIssuerId(){
		bankAccountDto.setIssuerBankAccountDtos(issuerModel.getBankAcountsByIssuer(issuer_id));
		return Action.SUCCESS;
	}

	public IssuerBankAccountDto getBankAccountDto() {
		return bankAccountDto;
	}

	public void setBankAccountDto(IssuerBankAccountDto bankAccountDto) {
		this.bankAccountDto = bankAccountDto;
	}

	@Override
	public IssuerBankAccountDto getModel() {
		return bankAccountDto;
	}

	public int getIssuer_id() {
		return issuer_id;
	}

	public void setIssuer_id(int issuer_id) {
		this.issuer_id = issuer_id;
	}

}
